﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace btnet.pages
{
    public partial class view_web_config : CommonPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            Bug_Util.do_not_cache(Response);

            security = new Security();
            security.check_security(HttpContext.Current, Security.MUST_BE_ADMIN);

            // create path
            string path = Request.MapPath(Request.Path);
            path = path.Replace("view_web_config.aspx", "Web.config");

            Response.ContentType = "application/xml";
            Response.WriteFile(path);
        }
    }
}
